﻿<UserControl x:Class="nSin.RicercaElencoTelefonico"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    <Grid>
        <DockPanel Name="dockPanel1" >
            <UniformGrid DockPanel.Dock="Top">
                <Label Grid.Row="0" Grid.Column="1" Name="label1" HorizontalAlignment="Right" HorizontalContentAlignment="Right">Nominativo</Label>
                <TextBox Grid.Row="0" Grid.Column="2" Name="txtNominativo" AcceptsReturn="False" />
                <Button Grid.Row="0" Grid.Column="3" Grid.RowSpan="2" VerticalAlignment="Center" Click="Button_Click" IsDefault="True">Ricerca</Button>
                <Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" HorizontalContentAlignment="Right">Reparto</Label>
                <TextBox Grid.Row="1" Grid.Column="2" Name="txtReparto" AcceptsReturn="False" />
            </UniformGrid>
                <ScrollViewer>
                    <ListView Name="lstElencoTelefonico" AlternationCount="1" SelectionChanged="lstElencoTelefonico_SelectionChanged" GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler" >
                        <ListView.ItemContainerStyle>
                            <Style TargetType="ListViewItem">
                                <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                            </Style>
                        </ListView.ItemContainerStyle>
                        <ListView.View>
                            <GridView>
                                <GridViewColumn Header="Nominativo" DisplayMemberBinding="{Binding Path=Nominativo}" />
                                <GridViewColumn Header="Reparto" DisplayMemberBinding="{Binding Path=Reparto}" />
                                <GridViewColumn Header="Societa" DisplayMemberBinding="{Binding Path=Societa}" />
                                <GridViewColumn Header="NumeroUrbano" DisplayMemberBinding="{Binding Path=NumeroUrbano}" />
                                <GridViewColumn Header="FAXNumeroUrbano" DisplayMemberBinding="{Binding Path=FAXNumeroUrbano}" />
                            </GridView>
                        </ListView.View>
                    </ListView>
                </ScrollViewer>
        </DockPanel>
    </Grid>
</UserControl>
